<template>
    <div class='edit-page-c'>
      <a-flex :vertical="false" justify="space-between">
        <div class="left-content">fjadsjadsfj</div>
        <div class="center-content">
          <div class="draw-title">
            画布区域
          </div>
          <div class="draw-c">
            <component v-for="(item) in editStore.components" :key="item.id" :is="componentKeyV[item.name]" v-bind="item.props"></component>
          </div>
        </div>
        <div class="right-content">fjadsjadsfj</div>
      </a-flex>
    </div>
</template>

<script setup lang='ts'>
    import {
      reactive
    } from 'vue';
    import { useEditStore } from '@/store/editStore';
    import LText from '@/components/LText.vue';
    const editStore = useEditStore();
    const componentKeyV ={
        'l-text': LText
      }
    

</script>

<style lang="scss" scoped>
    .left-content {
      width: 20%;
    }
    .center-content {
      width: 60%;
      .draw-title {
        width: 100%;
        text-align: center;
        margin-top: 20px;
        margin-bottom: 20px;
      }
      .draw-c {
        width: 375px;
        height: 667px;
        background-color: red;
        margin: auto;
      }
    }
    .right-content {
      width: 20%;
    }
</style>